package com.accp.ssmoa.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.accp.ssmoa.dao.UserAndRoleMapper;
import com.accp.ssmoa.pojo.UserAndRoleKey;
import com.accp.ssmoa.service.UserRoleService;

@Service("userRoleServiceImpl")
public class UserRoleServiceImpl implements UserRoleService {

	
	@Resource
	private UserAndRoleMapper userRolesDao;
	
	public int deleteByUserId(Integer id) {
		
		return userRolesDao.deleteById(id);
	}

	public int insertByList(List<UserAndRoleKey> userRoles) {
		
		return userRolesDao.insertList(userRoles);
	}

}
